package com.ag.hmk.action;

import java.util.List;

import com.ag.bean.TbGoodsstatus;
import com.ag.common.BaseAction;
import com.ag.hmk.service.impl.GoodsStatusServImpl;
/**
 * 
 * @author hmk
 * 查询物资状态
 */
public class GetGoodStatusAction extends BaseAction {

	private static final long serialVersionUID = -3288549226610223613L;
	
	private GoodsStatusServImpl goodsStatusServImpl;
	
	private List<TbGoodsstatus> gsList;
	
	
	/*
	 * 查询所有物品状态记录
	 */
	public String findAll()throws Exception{
		List<TbGoodsstatus> list = null;
		try {
			list = goodsStatusServImpl.findAll();
		} catch (Exception e) {
			e.printStackTrace();
			list = null;
		}
		this.setGsList(list);
		System.out.println("--------get all goodstatus ok");
		return "getGoodStatusOK";
	}


	public List<TbGoodsstatus> getGsList() {
		return gsList;
	}


	public void setGsList(List<TbGoodsstatus> gsList) {
		this.gsList = gsList;
	}


	public void setGoodsStatusServImpl(GoodsStatusServImpl goodsStatusServImpl) {
		this.goodsStatusServImpl = goodsStatusServImpl;
	}
	


	

}
